#pragma once

#include "CoreMinimal.h"
#include "LineComponentContainer.generated.h"

class ULineReplicationGraphComponent;

USTRUCT(BlueprintType)
struct FLineComponentContainer
{
	GENERATED_BODY()
	
	UPROPERTY()
	TSet<ULineReplicationGraphComponent*> Components;

public:
	void Reset() {Components.Reset();}
	int32 Num() const {return Components.Num();}
	void Add(ULineReplicationGraphComponent* Component)
	{
		Components.Add(Component);
	}
	bool Remove(ULineReplicationGraphComponent* Component)
	{
		return Components.Remove(Component) > 0;
	}
};